﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using Microsoft.WindowsAzure;
using Microsoft.WindowsAzure.StorageClient;

namespace jp110311.StorageModels
{
    /// <summary>
    /// ユーザーエンティティ、
    /// PartitionKey には zipCode を使い、RowKey はニックネーム
    /// </summary>
    [CLSCompliant(false)]
    public class UserEntity : TableServiceEntity
    {
        public UserEntity() : base()
        {            
        }

        public UserEntity(string zipCode, string nickName ) 
            : base( zipCode, 
                    nickName )
        {
            ZipCode = zipCode;
            NickName = nickName;
        }

        /// <summary>
        /// 郵便番号 数字7桁
        /// </summary>
        public string ZipCode { get; set; }

        /// <summary>
        /// ニックネーム ( 認証用+検索用 )
        /// </summary>
        public string NickName { get; set; }

        /// <summary>
        /// 姓
        /// </summary>
        public string FamilyName { get; set; }

        /// <summary>
        /// 名
        /// </summary>
        public string GivenName { get; set; }

        /// <summary>
        /// 誕生日 9999 ( 月２桁＋日２桁 )
        /// </summary>
        public string BirthDate { get; set; }

    }


}
